#ifndef TCPSOCKET_H
#define TCPSOCKET_H

#include <QtNetwork>

class TcpSocket : public QTcpSocket
{
    Q_OBJECT
public:
    TcpSocket();
    ~TcpSocket();
    void setSocketID(QString socketID);
    void sendMessage(QByteArray message);
private:
    QString socketID;
private slots:
    void socket_slot_readyRead();
    void socket_slot_disconnected();
    void socket_slot_bytesWritten(qint64);
signals:
    void socket_signal_readMessage(QString socketId);
    void socket_signal_disconnected(QString socketId);
    void socket_signal_bytesWritten(QString socketId, qint64 bytes);
};

#endif // TCPSOCKET_H
